package RepaymentPlan;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author yunfeis.shang
 * @title
 * @date 2018/05/07 15:47
 * @descreption
 */
public class AverageCapitalPlusInterest {
    public static void main(String[] args) {
        System.out.println("字符串类型的Long日期转换成日期:");
        String str = "1528855901262";
        Long dateLong = Long.valueOf(str);
        System.out.println("longToDate：" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(dateLong)));
        System.out.println("============================");
        try {
            System.out.println(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").parse("2018/06/13 15:19:00").getTime());
        } catch (Exception ex) {
        }
    }
}
